package com.jumi.microservice.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

public class ArticleClassVO  extends AbstractObject implements Serializable {
    @ApiModelProperty(value = "分类id")
    private Long acid;
    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空!")
    @Length(max = 10,message = "分类名称长度不能超过10个字符")
    private String acName;
    @ApiModelProperty(value = "父ID")
    private Long acParentId;
    @ApiModelProperty(value = "父级名称")
    @TableField(exist = false)
    private String acParentName;
    @ApiModelProperty(value = "排序")
    private Integer acSort;
    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer IsDel;
    @ApiModelProperty(value = "状态，1启用，0.禁用")
    private Integer status;
    @ApiModelProperty(value = "添加人")
    private String creater;
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "修改人")
    private String modifier;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "添加开始时间")
    private String startTimeAdd;
    @ApiModelProperty(value = "添加结束时间")
    private String endTimeAdd;
    @ApiModelProperty(value = "修改开始时间")
    private String startTimeUp;
    @ApiModelProperty(value = "修改结束时间")
    private String endTimeUp;

    public String getAcParentName() {
        return acParentName;
    }

    public void setAcParentName(String acParentName) {
        this.acParentName = acParentName;
    }

    public String getStartTimeAdd() {
        return startTimeAdd;
    }

    public void setStartTimeAdd(String startTimeAdd) {
        this.startTimeAdd = startTimeAdd;
    }

    public String getEndTimeAdd() {
        return endTimeAdd;
    }

    public void setEndTimeAdd(String endTimeAdd) {
        this.endTimeAdd = endTimeAdd;
    }

    public String getStartTimeUp() {
        return startTimeUp;
    }

    public void setStartTimeUp(String startTimeUp) {
        this.startTimeUp = startTimeUp;
    }

    public String getEndTimeUp() {
        return endTimeUp;
    }

    public void setEndTimeUp(String endTimeUp) {
        this.endTimeUp = endTimeUp;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDel() {
        return IsDel;
    }

    public void setIsDel(Integer isDel) {
        IsDel = isDel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAcid() {
        return acid;
    }

    public void setAcid(Long acid) {
        this.acid = acid;
    }

    public String getAcName() {
        return acName;
    }

    public void setAcName(String acName) {
        this.acName = acName;
    }

    public Long getAcParentId() {
        return acParentId;
    }

    public void setAcParentId(Long acParentId) {
        this.acParentId = acParentId;
    }

    public Integer getAcSort() {
        return acSort;
    }

    public void setAcSort(Integer acSort) {
        this.acSort = acSort;
    }
}
